﻿using System;
using System.Collections.Generic;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class Feat11RgSharepointIdDel
    {
        private List<uint> rgId;

        public void Read(BinaryReader reader)
        {
            ushort cId = reader.ReadUInt16();
            this.rgId = new List<uint>();
            for (int i = 0; i < cId; i++)
            {
                rgId.Add(reader.ReadUInt32());
            }
        }

        public void Write(BinaryWriter writer)
        {
            ushort cId = (ushort) rgId.Count;
            foreach (var item in rgId)
                writer.Write(item);
        }
    }
}